<!doctype html>
<html class="no-js" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Amaze UI Admin table Examples</title>
  <meta name="description" content="这是一个 table 页面">
  <meta name="keywords" content="table">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="icon" type="image/png" th:href="@{../i/favicon.png}">
  <link rel="apple-touch-icon-precomposed" th:href="@{../i/app-icon72x722x.png}">
  <meta name="apple-mobile-web-app-title" content="Amaze UI" />
  <link rel="stylesheet" th:href="@{../css/amazeui.min.css}"/>
  <link rel="stylesheet" th:href="@{../css/admin.css}">
</head>
<body>
<!--[if lte IE 9]>
<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请 <a href="http://browsehappy.com/" target="_blank">升级浏览器</a>
  以获得更好的体验！</p>
<![endif]-->

<header class="am-topbar admin-header">
  <div class="am-topbar-brand">
    <strong>Laboratory</strong> <small>实验室管理系统</small>
  </div>

  <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>

  <div class="am-collapse am-topbar-collapse" id="topbar-collapse">

    <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list">
      <li><a href="javascript:;"><span class="am-icon-envelope-o"></span> 收件箱 <span class="am-badge am-badge-warning">5</span></a></li>
      <li class="am-dropdown" data-am-dropdown>
        <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">
          <span class="am-icon-users"></span> 学生工作处 <span class="am-icon-caret-down"></span>
        </a>
        <ul class="am-dropdown-content">
          <li><a href="#"><span class="am-icon-user"></span> 资料</a></li>
          <li><a href="#"><span class="am-icon-cog"></span> 设置</a></li>
          <li><a href="#"><span class="am-icon-power-off"></span> 退出</a></li>
        </ul>
      </li>
      <li class="am-hide-sm-only"><a href="javascript:;" id="admin-fullscreen"><span class="am-icon-arrows-alt"></span> <span class="admin-fullText">开启全屏</span></a></li>
    </ul>
  </div>
</header>

<div class="am-cf admin-main">
  <!-- sidebar start -->
  <div class="admin-sidebar am-offcanvas" id="admin-offcanvas">
    <div class="am-offcanvas-bar admin-offcanvas-bar">
      <ul class="am-list admin-sidebar-list">
        <li><a th:href="@{/tostudentworkindex}"><span class="am-icon-home"></span> 首页 </span></a></li>


        <li><a th:href="@{/planlist}"><span class="am-icon-table"></span> 审核招聘计划 <span class="am-icon-angle-right am-fr am-margin-right"></span> </a></li>
      </ul>

      <div class="am-panel am-panel-default admin-sidebar-panel">
        <div class="am-panel-bd">
          <p><span class="am-icon-bookmark"></span> 公告</p>
          <p>时光静好，与君语；细水流年，与君同。—— Amaze UI</p>
        </div>
      </div>

      <div class="am-panel am-panel-default admin-sidebar-panel">
        <div class="am-panel-bd">
          <p><span class="am-icon-tag"></span> wiki</p>
          <p>Welcome to the Amaze UI wiki!</p>
        </div>
      </div>
    </div>
  </div>
  <!-- sidebar end -->

  <!-- content start -->
  <div class="admin-content">

    <div class="am-cf am-padding">
      <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">招聘计划表</strong> / <small>Plan Table</small></div>
    </div>


    <form th:action="@{/planlist}">
      <div class="input-group" style="margin-left: 800px">
        <input type="text" name="context" th:value="${context}" class="form-control" style="width:100px" placeholder="计划编号">
        <input class="btn btn-success" type="submit" value="查找"/>
      </div>
    </form>




    <div class="am-g">
      <div class="am-u-sm-12">
        <form class="am-form">
          <table class="am-table am-table-striped am-table-hover table-main">
            <thead>
              <tr>
                <th class="table-title">计划编号</th>
                <th class="table-title">计划名称</th>
                <th class="table-title">所属部门</th>
                <th class="table-title">招聘人数</th>
                <th class="table-title">开始时间</th>
                <th class="table-title">结束时间</th>
                <th class="table-title">申请人</th>
                <th class="table-title">申请时间</th>
                <th class="table-title">状态</th>
                <th class="table-title">操作</th>

              </tr>
          </thead>
          <tbody>
            <tr th:each=" m :${planlist}">

              <td th:text="${m.planid}"></td>
              <td th:text="${m.planname}"></td>
              <td th:text="${m.department}"></td>
              <td th:text="${m.personnum}"></td>
              <td th:text="${m.starttime}"></td>
              <td th:text="${m.endtime}"></td>
              <td th:text="${m.applicant}"></td>
              <td th:text="${#dates.format(m.applicationtime,'yyyy-MM-dd HH:mm')}"></td>
              <td th:text="((${m.state == '0'})? '未审核':(${m.state == '1'}?'审核通过':'审核不通过'))"></td>
              <td>
                <div class="am-btn-toolbar">
                  <div class="am-btn-group am-btn-group-xs">
                    <a  th:href="'/plancheck/'+${m.id}" class="am-btn am-btn-default am-btn-xs am-text-success"><span class="am-icon-pencil-square-o"></span> 审核</a>
                  </div>
                </div>
              </td>
            </tr>

          </tbody>
        </table>
          <hr />
        </form>
      </div>

    </div>
  </div>
  <!-- content end -->
</div>

<a href="#" class="am-icon-btn am-icon-th-list am-show-sm-only admin-menu" data-am-offcanvas="{target: '#admin-offcanvas'}"></a>



<!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="../../static/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->
<script src="../assets/js/jquery.min.js"></script>
<!--<![endif]-->
<script src="../assets/js/amazeui.min.js"></script>
<script src="../assets/js/app.js"></script>
</body>
</html>
